﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace TheNewTuringOmnibus {
    
    public partial class ImageForm : Form {
        
        public ImageForm() {
            InitializeComponent();

            hScrollBar1.Scroll += (sender, e) => {
                pictureBox1.Image = null;
                pictureBox1.Image = Algorithms.CreateWallpaper(hScrollBar1.Value, hScrollBar2.Value, hScrollBar3.Value);
            };
            hScrollBar2.Scroll += (sender, e) => {
                pictureBox1.Image = null;
                pictureBox1.Image = Algorithms.CreateWallpaper(hScrollBar1.Value, hScrollBar2.Value, hScrollBar3.Value);
            };
            hScrollBar3.Scroll += (sender, e) => {
                pictureBox1.Image = null;
                pictureBox1.Image = Algorithms.CreateWallpaper(hScrollBar1.Value, hScrollBar2.Value, hScrollBar3.Value);
            };
        }
    }
}
